@extends('layouts.master')

@section('title')
    文章列表——钢链网管理后台
@stop
@section('app_css')
    <link rel="stylesheet" href="/resource/css/bootstrap.min.css">
    <link rel="stylesheet" href="/resource/css/font-awesome.min.css">
    <link rel="stylesheet" href="/resource/css/animate.min.css">

    <link rel="stylesheet" href="/resource/css/custom.css">
    <link rel="stylesheet" href="/resource/css/green.css">
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
@stop
@section('app_js')
    <script src="/resource/js/jquery.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/custom.js"></script>

    <!-- icheck -->
    <script src="/resource/js/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="/resource/js/jquery.dataTables.js"></script>
    <script src="/resource/js/J_main.js"></script>
@stop
@section('content')
<body class="nav-md">

<div class="container body">


    <div class="main_container">


                <!-- /menu prile quick info -->

                @include('common.admin_menu')

                <!-- /menu footer buttons -->

                <!-- /menu footer buttons -->



        <!-- top navigation -->
        @include('common.admin_nav')
        <!-- /top navigation -->


        <!-- page content -->
        <div class="right_col" role="main">

            <div class="">

                <div class="row cont">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>发布采购单管理 <small>发布采购单列表</small></h2>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <table id="example" class="table table-striped responsive-utilities jambo_table">
                                    <thead>
                                    <tr class="headings">
                                        <th>
                                            <input type="checkbox" class="tableflat">
                                        </th>
                                        <th>商品标题</th>
                                        <th>价格</th>
                                        <th>数量</th>
                                        <th>单位</th>
                                        <th>交货地</th>
                                        <th>联系人</th>
                                        <th>电话</th>
                                        <th>公司</th>
                                        <th>审核状态</th>
                                        <th class=" no-link last"><span class="nobr">操作</span>
                                        </th>
                                    </tr>
                                    </thead>

                                    <tbody>   @foreach($info as $data)
                                    <tr class="even pointer img-box">

                                        <td class="a-center ">
                                            <input type="checkbox" class="tableflat">
                                        </td>

                                        <td class=" ">{{$data->title}}</td>
                                        <td class=" ">{{$data->price}}</td>
                                        <td class=" ">{{$data->num}}</td>
                                        <td class=" ">{{$data->unit}}</td>
                                        <td class=" ">{{$data->place}}</td>
                                        <td class=" ">{{$data->contacts}}</td>
                                        <td class=" ">{{$data->tell}}</td>
                                        <td class=" ">{{$data->company}}</td>
                                        <td class=" ">@if($data->state==0)审核中@elseif($data->state==1)审核通过@else未通过@endif</td>
                                        <td class=" last">
                                            <a href="/admin/purchase_resource_details?purchase_id={{$data->purchase_id}}">编辑</a>
                                        </td>

                                    </tr>
                                    @endforeach
                                    </tbody>

                                </table>
                            </div>
                        </div>
                    </div>

                    <br />
                    <br />
                    <br />

                </div>
            </div>

            <!-- footer content -->

            <footer>
                <div class="">
                    <p class="pull-right">Copyright 2016 ganglianw.com All rights reserved. |
                        <span class="lead"> <i class="fa fa-logo-footer"></i> 钢链网后台管理系统</span>
                    </p>
                </div>
                <div class="clearfix"></div>
            </footer>
            <!-- /footer content -->
        </div>
        <!-- /page content -->

    </div>
</div>

<div id="custom_notifications" class="custom-notifications dsp_none">
    <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">
    </ul>
    <div class="clearfix"></div>
    <div id="notif-group" class="tabbed_notifications"></div>
</div>

</body>
@stop